﻿@model IQueryable<loveMotorcade.web.Models.carClassExt>

@{
    ViewBag.Title = "Index";
    int allCount =Convert.ToInt32(ViewBag.count);
    int pageSize = 16;
}

<h2>Index</h2>



    <div class="pageNav" style="text-align:right; padding-right:20px;">
        @{double xx = (double) allCount / pageSize;
          double zz = Math.Ceiling(xx);
          }
        @Html.ActionLink("新建", "Edit")
        @for (int p = 0; p < zz; p++)
        {
            <a href="?pageIndex=@(p+1)">@(p+1)</a>
        } 
        
        共<span>@zz</span>页

    </div>
<div >

    @foreach( var item in Model){
    <div class="carClassBox">
        <span class="name" title="@item.basc.intro" >@Html.DisplayFor(modelItem =>item.basc.name)</span>
        <a href="###" title="@Html.DisplayFor(modelItem =>item.basc.headmainPhone)" class="headman" >组长：@Html.DisplayFor(modelItem =>item.basc.headman) </a>
        <span class="totalNum" >@Html.DisplayFor(modelItem =>item.basc.totalNum)</span>
        <div class="intro" >介绍：@Html.DisplayFor(modelItem =>item.basc.intro)</div>
        <div class="order">
            订单：
            <span class="able">@Html.DisplayFor(modelItem =>item.orderAble)</span> / 
            <span class="all">@Html.DisplayFor(modelItem =>item.orderAll)</span>
        </div>
        <a href="/manage/carClass/Edit/@item.basc.ID" class="viewBtn" >详情</a>
        <a href="/manage/carClass/Edit/@item.basc.ID" class="orderBtn">订单</a>
    </div>
    }
</div>
